<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/content/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>菜单</title>
		<t:resource types="jquery,lhgdialog,easyui" />
	</head>
	<body>
		<ui:form name="menu-form" refreshGrid="menuList" action="permission.do?saveOrUpdate">
			<c:if test="${!empty parentMenu }">
				<div class="form-group">
					<label class="label">父级菜单:</label>
					<input type="hidden" name="parentPermiId" id="parentPermiId" value="${parentMenu.id }">
					<input id="parentPermi.permiName" type="text" name="parentPermi.permiName" value="${parentMenu.permiName }" class="easyui-textbox" disabled="disabled" />
				</div>
			</c:if>
			<div class="form-group">
				<label class="label">菜单名称:</label>
				<input type="hidden" name="id" id="id" value="${menu.id }">
				<input id="permiName" type="text" name="permiName" value="${menu.permiName }" class="easyui-textbox" data-options="required:true,validType:['length[2,20]']" />
			</div>
			<div class="form-group">
				<label class="label">菜单类型:</label>
				<ui:combobox name="permiType" dictionary="permiType" width="171" panelHeight="80" setValue="1" readonly="true" />
			</div>
			<div class="form-group">
				<label class="label">菜单图标:</label>
				<ui:combogrid name="permiIcon" idField="iconCode" textField="iconCode" action="icon.do?datagrid" setValue="${menu.permiIcon }" width="171" panelWidth="420" panelHeight="200">
					<ui:column field="iconCode" title="图标代码" />
					<ui:column field="iconName" title="图标名称" />
					<ui:column field="imagePath" title="图片地址" showImage="true" align="center" />
					<ui:column field="iconType" title="图标类型" dictionary="iconType" />
				 </ui:combogrid>
			</div>
			<div class="form-group">
				<label class="label">菜单排序:</label>
				<input id="permiOrder" type="text" name="permiOrder" value="${menu.permiOrder }" class="easyui-numberbox" data-options="required:true,min:1,precision:0" />
			</div>
			<div class="form-group">
				<label class="label">访问URL:</label>
				<input id="permiUrl" type="text" name="permiUrl" value="${menu.permiUrl }" class="easyui-textbox" />
			</div>
		</ui:form>
	</body>
</html>